package ink.charon.novel.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 小说类别表(BookCategory)表实体类
 *
 * @author Pluto
 * @since 2021-08-17 09:37:07
 */
@SuppressWarnings("serial")
public class BookCategory extends Model<BookCategory> {
    //主键
    private Integer id;
    //作品方向，0：男频，1：女频'
    private Byte workDirection;
    //分类名
    private String name;
    //排序
    private Byte sort;

    private Long createUserId;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private Long updateUserId;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Byte getWorkDirection() {
        return workDirection;
    }

    public void setWorkDirection(Byte workDirection) {
        this.workDirection = workDirection;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Byte getSort() {
        return sort;
    }

    public void setSort(Byte sort) {
        this.sort = sort;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
